﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core.DataAccess.Tools.Implementations;
using Core.Logic.Implementations;
using Core.Model;
using Core.Model.Questions;
using Question = Core.Model.Questions.Question;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {


            var alogic = new AnswerLogicProvider(new Core.Relations
                .DataProviderFactory().GetAnswerDataProvider());


            var qestlog = new QuestionLogicProvider(new Core.Relations
                .DataProviderFactory().GetQuestionDataProvider());

            var qllogic =
              new QuestionListLogicProvider(new Core.Relations.DataProviderFactory().GetQuestionListDataProvider());

            var logic = new UserLogicProvider(new Core.Relations
                .DataProviderFactory().GetUserDataProvider());

            var tagl = new TagLogicProvider(new Core.Relations
                                                .DataProviderFactory().GetTagDataProvider());

            var qlist = new QuestionList("asd", "asd", false);

            qlist = qllogic.GetAll()[0];

            
            qlist.Tags.Add(new Tag("tagg"));
            qllogic.Update(qlist);

            var tags = tagl.GetAll();



            var user2 = logic.GetAll();
          //  var user = new User("test", "test");

           // user = logic.Save(user);

           // user.MyQuestionLists.Add(new QuestionList("test","test",false));

           // user = logic.Update(user);

        }
    }
}
